----------------------------------------------------------------------------------
      name:  <unnamed>
       log:  G:\My Drive\Research\CTC expansion\submission\ntj\stata replication f
> iles/output/figure9.log
  log type:  text
 opened on:   3 Dec 2023, 18:13:21

. 
. use "$data/acsmergeddata.dta", clear

. 
. *** total adults
. gen pop=(perwt + spouseperwt)

. egen totadults=sum(pop)

. di totadults
63164152

. drop pop

. 
. gen pop=(newnumkidswt17)

. egen totkids=sum(pop)

. di totkids
72755400

. drop pop

. 
. ** total effect on poverty
. gen pooradults=(age>=18)*poor*(perwt+spouseperwt)

. egen totpooradults=sum(pooradults)

. 
. gen nolongerpooradults=(age>=18)*poor*(poorctc21==0)*(perwt+spouseperwt)

. egen totnolongerpooradults=sum(nolongerpooradults)

. 
. gen stillpooradults=(age>=18)*poor*(poorctc21==1)*(perwt+spouseperwt)

. egen totstillpooradults=sum(stillpooradults)

. 
. drop stillpoor totstillpoor 

. 
. gen poorkids=poor*(newnumkidswt17)

. egen totpoorkids=sum(poorkids)

. di totpoorkids
11176950

. 
. gen stillpoor=poor*(poorctc21==1)*(newnumkidswt17)

. egen totstillpoor=sum(stillpoor)

. 
. di totkids
72755400

. di totpoorkids
11176950

. di totstillpoor
7727193.5

. 
. di totpoorkids/totkids
.15362365

. di (totstillpoor)/totkids
.10620783

. 
. ** VARIOUS ELASTICITIES FOR UNMARRIED MOTHERS
. 
. forvalues elas=0(1)20{
  2. preserve
  3. 
. * row 1
. gen double group=(married==0)*(incwage>0)*(v25>0)*(agi2017<80000)*(calckids>0)*(
> samplejustwomen==1)
  4. 
. gen double group1=newnumkidswt17*avgtax*(`elas'/10)*group
  5. egen totgroup1a=sum(group1)
  6. gen double group2=newnumkidswt17*avgtax*(`elas'/10)*group*poor
  7. egen totgroup2a=sum(group2)
  8. 
. gen double group3=newnumkidswt17*avgtax*(`elas'/10)*group*(poor==0)
  9. egen totgroup3a=sum(group3)
 10. 
. gen double group4=newnumkidswt17*avgtax*(`elas'/10)*group*(poor==0)*poorctc21not
> her
 11. egen totgroup4a=sum(group4)
 12. 
. gen double group5=newnumkidswt17*avgtax*(`elas'/10)*group*(poor==1)*(poorctc21==
> 0)*poorctc21nother
 13. egen totgroup5a=sum(group5)
 14. 
. gen pov1=(poor*group)/(group)
 15. gen pov2=(poor*group*(poorctc21==1))/(group)
 16. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 17. 
. egen pop=sum(group*newnumkidswt17)
 18. forvalues i=1/3{
 19.         egen povnum`i'a=sum(pov`i'*newnumkidswt17)
 20.         gen povrate`i'=povnum`i'a/pop
 21.         }
 22. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 23. 
. * row 2
. gen double group=(married==0)*(incwage>0)*(v25==0)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 24. 
. gen double group1=newnumkidswt17*avgtax*.2*group
 25. egen totgroup1b=sum(group1)
 26. 
. gen double group2=newnumkidswt17*avgtax*.2*group*poor
 27. egen totgroup2b=sum(group2)
 28. 
. gen double group3=newnumkidswt17*avgtax*.2*group*(poor==0)
 29. egen totgroup3b=sum(group3)
 30. 
. gen double group4=newnumkidswt17*avgtax*.2*group*(poor==0)*poorctc21nother
 31. egen totgroup4b=sum(group4)
 32. 
. gen double group5=newnumkidswt17*avgtax*.2*group*(poor==1)*(poorctc21==0)*poorct
> c21nother
 33. egen totgroup5b=sum(group5)
 34. 
. gen pov1=(poor*group)/(group)
 35. gen pov2=(poor*group*(poorctc21==1))/(group)
 36. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 37. 
. egen pop=sum(group*newnumkidswt17)
 38. forvalues i=1/3{
 39.         egen povnum`i'b=sum(pov`i'*newnumkidswt17)
 40.         gen povrate`i'=povnum`i'b/pop
 41.         }
 42. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 43. 
. * row 3
. gen double group=(married==1)*(incwage>0)*(agi2017<80000)*(calckids>0)*(sampleju
> stwomen==1)
 44. 
. gen double group1=newnumkidswt17*avgtax*.2*group
 45. egen totgroup1c=sum(group1)
 46. 
. gen double group2=newnumkidswt17*avgtax*.2*group*poor
 47. egen totgroup2c=sum(group2)
 48. 
. gen double group3=newnumkidswt17*avgtax*.2*group*(poor==0)
 49. egen totgroup3c=sum(group3)
 50. 
. gen double group4=newnumkidswt17*avgtax*.2*group*(poor==0)*poorctc21nother
 51. egen totgroup4c=sum(group4)
 52. 
. gen double group5=newnumkidswt17*avgtax*.2*group*(poor==1)*(poorctc21==0)*poorct
> c21nother
 53. egen totgroup5c=sum(group5)
 54. 
. gen pov1=(poor*group)/(group)
 55. gen pov2=(poor*group*(poorctc21==1))/(group)
 56. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 57. 
. egen pop=sum(group*newnumkidswt17)
 58. forvalues i=1/3{
 59.         egen povnum`i'c=sum(pov`i'*newnumkidswt17)
 60.         gen povrate`i'=povnum`i'c/pop
 61.         }
 62. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 63. 
. * row 4
. gen double group=(married==1)*(totincwage>incwage)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 64. 
. gen double group1=newnumkidswt17*newrtwchangespouse*.05*group
 65. egen totgroup1d=sum(group1)
 66. 
. gen double group2=newnumkidswt17*newrtwchangespouse*.05*group*poor
 67. egen totgroup2d=sum(group2)
 68. 
. gen double group3=newnumkidswt17*newrtwchangespouse*.05*group*(poor==0)
 69. egen totgroup3d=sum(group3)
 70. 
. gen double group4=newnumkidswt17*newrtwchangespouse*.05*group*(poor==0)*poorctc2
> 1notspouse
 71. egen totgroup4d=sum(group4)
 72. 
. gen double group5=newnumkidswt17*newrtwchangespouse*.05*group*(poor==1)*(poorctc
> 21==0)*poorctc21notspouse
 73. egen totgroup5d=sum(group5)
 74. 
. gen pov1=(poor*group)/(group)
 75. gen pov2=(poor*group*(poorctc21==1))/(group)
 76. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 77. 
. egen pop=sum(group*newnumkidswt17)
 78. forvalues i=1/3{
 79.         egen povnum`i'd=sum(pov`i'*newnumkidswt17)
 80.         gen povrate`i'=povnum`i'd/pop
 81.         }
 82. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 83. 
. * row 5: sum up non-mom and potential spouse
. gen person1=(incwage>0)*(agi2017<80000)*(calckids>0)*(samplenotmoms==1)
 84. gen person2=(totincwage>incwage)*(agi2017<80000)*(calckids>0)*(samplenotmoms=
> =1)*(married==1)
 85. 
. gen double group1=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05
 86. egen totgroup1e=sum(group1)
 87. 
. gen double group2=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05*poo
> r
 88. egen totgroup2e=sum(group2)
 89. 
. gen double group3=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05*(po
> or==0)
 90. egen totgroup3e=sum(group3)
 91. 
. gen double group4=(newnumkidswt17*person1)*avgtax*.05*(poor==0)*poorctc21nother+
> (newnumkidswt17*person2)*avgtax*.05*(poor==0)*poorctc21notspouse
 92. 
. egen totgroup4e=sum(group4)
 93. 
. gen double group5=(newnumkidswt17*person1)*avgtax*.05*(poor==1)*(poorctc21==0)*p
> oorctc21nother+newnumkidswt17*person2*avgtax*.05*(poor==1)*(poorctc21==0)*poorct
> c21notspouse
 94. egen totgroup5e=sum(group5)
 95. 
. gen pov1=(poor*(person1*newnumkidswt17+person2*newnumkidswt17))
 96. gen pov2=(poorctc21*(person1*newnumkidswt17+person2*newnumkidswt17))
 97. gen pov3=(poorctc21*(person1*newnumkidswt17+person2*newnumkidswt17)+group4+gr
> oup5)
 98. 
. egen pop=sum(newnumkidswt17*person1+newnumkidswt17*person2)
 99. forvalues i=1/3{
100.         egen povnum`i'e=sum(pov`i')
101.         gen povrate`i'=povnum`i'e/pop
102.         }
103. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
104. 
. forvalues i=1/5{
105.         di totgroup`i'a+totgroup`i'b+totgroup`i'c+totgroup`i'd+totgroup`i'e
106. }
107. 
. di totkids
108. di totpoorkids
109. di totstillpoor
110. di (totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+totgr
> oup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
111. di totpoorkids/totkids
112. di totstillpoor/totkids
113. di (totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+totgr
> oup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)/totkids
114. di "pov % decrease="
115. di (totpoorkids-(totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+tot
> group4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e))/totpoorkids
116. 
. local netkidpovrate_e`elas'=(totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgr
> oup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
117. local kidpovchange_e`elas'=(totpoorkids-(totstillpoor+totgroup4a+totgroup4b+t
> otgroup4c+totgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totg
> roup5e))/totpoorkids
118. 
. local lesspoorkids_e`elas'=totpoorkids-(totstillpoor+totgroup4a+totgroup4b+totgr
> oup4c+totgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup
> 5e)
119. 
. di `lesspoorkids_e`elas''
120. 
. local employment_e`elas'=totgroup1a+totgroup1b+totgroup1c+totgroup1d+totgroup1e
121. di `employment_e`elas''
122. 
. di `netkidpovrate_e`elas'' 
123. di `kidpovchange_e`elas''
124. restore
125. 
. }
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
235349.86
31674.776
203675.09
81499.149
7645.577
72755400
11176950
7727193.5
7816338.2
.15362365
.10620783
.1074331
pov % decrease=
.30067342
3360611.8
235349.86
7816338.2
.30067342
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
366564.02
61603.59
304960.43
127388.61
16007.218
72755400
11176950
7727193.5
7870589.3
.15362365
.10620783
.10817877
pov % decrease=
.29581958
3306360.7
366564.02
7870589.3
.29581958
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
497778.17
91532.405
406245.77
173278.08
24368.858
72755400
11176950
7727193.5
7924840.4
.15362365
.10620783
.10892443
pov % decrease=
.29096574
3252109.6
497778.17
7924840.4
.29096574
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
628992.33
121461.22
507531.12
219167.54
32730.501
72755400
11176950
7727193.5
7979091.5
.15362365
.10620783
.10967009
pov % decrease=
.28611191
3197858.5
628992.33
7979091.5
.28611191
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
760206.49
151390.03
608816.46
265057.01
41092.139
72755400
11176950
7727193.5
8033342.6
.15362365
.10620783
.11041576
pov % decrease=
.28125807
3143607.4
760206.49
8033342.6
.28125807
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
891420.67
181318.85
710101.8
310946.46
49453.78
72755400
11176950
7727193.5
8087593.7
.15362365
.10620783
.11116142
pov % decrease=
.27640423
3089356.3
891420.67
8087593.7
.27640423
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1022634.8
211247.67
811387.15
356835.93
57815.425
72755400
11176950
7727193.5
8141844.9
.15362365
.10620783
.11190709
pov % decrease=
.27155039
3035105.1
1022634.8
8141844.9
.27155039
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1153849
241176.48
912672.52
402725.4
66177.065
72755400
11176950
7727193.5
8196096
.15362365
.10620783
.11265275
pov % decrease=
.26669655
2980854
1153849
8196096
.26669655
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1285063.1
271105.29
1013957.8
448614.87
74538.702
72755400
11176950
7727193.5
8250347.1
.15362365
.10620783
.11339842
pov % decrease=
.26184271
2926602.9
1285063.1
8250347.1
.26184271
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1416277.4
301034.12
1115243.2
494504.34
82900.343
72755400
11176950
7727193.5
8304598.2
.15362365
.10620783
.11414408
pov % decrease=
.25698888
2872351.8
1416277.4
8304598.2
.25698888
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1547491.5
330962.93
1216528.5
540393.77
91261.983
72755400
11176950
7727193.5
8358849.3
.15362365
.10620783
.11488974
pov % decrease=
.25213504
2818100.7
1547491.5
8358849.3
.25213504
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1678705.6
360891.74
1317813.8
586283.24
99623.632
72755400
11176950
7727193.5
8413100.4
.15362365
.10620783
.11563541
pov % decrease=
.2472812
2763849.6
1678705.6
8413100.4
.2472812
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1809919.7
390820.56
1419099.2
632172.71
107985.27
72755400
11176950
7727193.5
8467351.5
.15362365
.10620783
.11638107
pov % decrease=
.24242736
2709598.5
1809919.7
8467351.5
.24242736
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1941134
420749.37
1520384.6
678062.15
116346.91
72755400
11176950
7727193.5
8521602.6
.15362365
.10620783
.11712674
pov % decrease=
.23757353
2655347.4
1941134
8521602.6
.23757353
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2072348.1
450678.18
1621670
723951.65
124708.55
72755400
11176950
7727193.5
8575853.7
.15362365
.10620783
.1178724
pov % decrease=
.23271969
2601096.3
2072348.1
8575853.7
.23271969
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2203562.2
480606.99
1722955.3
769841.09
133070.19
72755400
11176950
7727193.5
8630104.8
.15362365
.10620783
.11861807
pov % decrease=
.22786585
2546845.2
2203562.2
8630104.8
.22786585
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2334776.4
510535.81
1824240.6
815730.59
141431.83
72755400
11176950
7727193.5
8684355.9
.15362365
.10620783
.11936373
pov % decrease=
.22301201
2492594.1
2334776.4
8684355.9
.22301201
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2465990.6
540464.62
1925526
861620.02
149793.47
72755400
11176950
7727193.5
8738607
.15362365
.10620783
.12010939
pov % decrease=
.21815817
2438343
2465990.6
8738607
.21815817
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2597204.9
570393.46
2026811.3
907509.52
158155.11
72755400
11176950
7727193.5
8792858.1
.15362365
.10620783
.12085506
pov % decrease=
.21330433
2384091.9
2597204.9
8792858.1
.21330433
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2728418.9
600322.28
2128096.7
953398.96
166516.75
72755400
11176950
7727193.5
8847109.2
.15362365
.10620783
.12160072
pov % decrease=
.2084505
2329840.8
2728418.9
8847109.2
.2084505
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2859633.1
630251.09
2229382
999288.4
174878.39
72755400
11176950
7727193.5
8901360.3
.15362365
.10620783
.12234639
pov % decrease=
.20359666
2275589.7
2859633.1
8901360.3
.20359666

. 
. gen elasticity=.
(356,390 missing values generated)

. gen netkidpovrate1=.
(356,390 missing values generated)

. gen kidpovchange1=.
(356,390 missing values generated)

. gen lesspoorkids1=.
(356,390 missing values generated)

. gen employment1=.
(356,390 missing values generated)

. 
. forvalues elas=0(1)20{
  2.         replace elasticity=`elas' if _n==`elas'+1
  3.         replace netkidpovrate1=`netkidpovrate_e`elas''/1000000 if _n==`elas'+
> 1
  4.         replace kidpovchange1=`kidpovchange_e`elas'' if _n==`elas'+1
  5.         replace lesspoorkids1=`lesspoorkids_e`elas'' if _n==`elas'+1
  6.         replace employment1=`employment_e`elas'' if _n==`elas'+1
  7.         }
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)

. 
. * EVERYONE ELSE GETS 0.25
. 
. forvalues elas=0(1)20{
  2. preserve
  3. 
. * row 1
. gen double group=(married==0)*(incwage>0)*(v25>0)*(agi2017<80000)*(calckids>0)*(
> samplejustwomen==1)
  4. 
. gen double group1=newnumkidswt17*avgtax*(`elas'/10)*group
  5. egen totgroup1a=sum(group1)
  6. gen double group2=newnumkidswt17*avgtax*(`elas'/10)*group*poor
  7. egen totgroup2a=sum(group2)
  8. 
. gen double group3=newnumkidswt17*avgtax*(`elas'/10)*group*(poor==0)
  9. egen totgroup3a=sum(group3)
 10. 
. gen double group4=newnumkidswt17*avgtax*(`elas'/10)*group*(poor==0)*poorctc21not
> her
 11. egen totgroup4a=sum(group4)
 12. 
. gen double group5=newnumkidswt17*avgtax*(`elas'/10)*group*(poor==1)*(poorctc21==
> 0)*poorctc21nother
 13. egen totgroup5a=sum(group5)
 14. 
. gen pov1=(poor*group)/(group)
 15. gen pov2=(poor*group*(poorctc21==1))/(group)
 16. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 17. 
. egen pop=sum(group*newnumkidswt17)
 18. forvalues i=1/3{
 19.         egen povnum`i'a=sum(pov`i'*newnumkidswt17)
 20.         gen povrate`i'=povnum`i'a/pop
 21.         }
 22. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 23. 
. * row 2
. gen double group=(married==0)*(incwage>0)*(v25==0)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 24. 
. gen double group1=newnumkidswt17*avgtax*.25*group
 25. egen totgroup1b=sum(group1)
 26. 
. gen double group2=newnumkidswt17*avgtax*.25*group*poor
 27. egen totgroup2b=sum(group2)
 28. 
. gen double group3=newnumkidswt17*avgtax*.25*group*(poor==0)
 29. egen totgroup3b=sum(group3)
 30. 
. gen double group4=newnumkidswt17*avgtax*.25*group*(poor==0)*poorctc21nother
 31. egen totgroup4b=sum(group4)
 32. 
. gen double group5=newnumkidswt17*avgtax*.25*group*(poor==1)*(poorctc21==0)*poorc
> tc21nother
 33. egen totgroup5b=sum(group5)
 34. 
. gen pov1=(poor*group)/(group)
 35. gen pov2=(poor*group*(poorctc21==1))/(group)
 36. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 37. 
. egen pop=sum(group*newnumkidswt17)
 38. forvalues i=1/3{
 39.         egen povnum`i'b=sum(pov`i'*newnumkidswt17)
 40.         gen povrate`i'=povnum`i'b/pop
 41.         }
 42. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 43. 
. * row 3
. gen double group=(married==1)*(incwage>0)*(agi2017<80000)*(calckids>0)*(sampleju
> stwomen==1)
 44. 
. gen double group1=newnumkidswt17*avgtax*.25*group
 45. egen totgroup1c=sum(group1)
 46. 
. gen double group2=newnumkidswt17*avgtax*.25*group*poor
 47. egen totgroup2c=sum(group2)
 48. 
. gen double group3=newnumkidswt17*avgtax*.25*group*(poor==0)
 49. egen totgroup3c=sum(group3)
 50. 
. gen double group4=newnumkidswt17*avgtax*.25*group*(poor==0)*poorctc21nother
 51. egen totgroup4c=sum(group4)
 52. 
. gen double group5=newnumkidswt17*avgtax*.25*group*(poor==1)*(poorctc21==0)*poorc
> tc21nother
 53. egen totgroup5c=sum(group5)
 54. 
. gen pov1=(poor*group)/(group)
 55. gen pov2=(poor*group*(poorctc21==1))/(group)
 56. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 57. 
. egen pop=sum(group*newnumkidswt17)
 58. forvalues i=1/3{
 59.         egen povnum`i'c=sum(pov`i'*newnumkidswt17)
 60.         gen povrate`i'=povnum`i'c/pop
 61.         }
 62. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 63. 
. * row 4
. gen double group=(married==1)*(totincwage>incwage)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 64. 
. gen double group1=newnumkidswt17*newrtwchangespouse*.25*group
 65. egen totgroup1d=sum(group1)
 66. 
. gen double group2=newnumkidswt17*newrtwchangespouse*.25*group*poor
 67. egen totgroup2d=sum(group2)
 68. 
. gen double group3=newnumkidswt17*newrtwchangespouse*.25*group*(poor==0)
 69. egen totgroup3d=sum(group3)
 70. 
. gen double group4=newnumkidswt17*newrtwchangespouse*.25*group*(poor==0)*poorctc2
> 1notspouse
 71. egen totgroup4d=sum(group4)
 72. 
. gen double group5=newnumkidswt17*newrtwchangespouse*.25*group*(poor==1)*(poorctc
> 21==0)*poorctc21notspouse
 73. egen totgroup5d=sum(group5)
 74. 
. gen pov1=(poor*group)/(group)
 75. gen pov2=(poor*group*(poorctc21==1))/(group)
 76. gen pov3=(poor*group*(poorctc21==1)+group4/newnumkidswt17+group5/newnumkidswt
> 17)/(group)
 77. 
. egen pop=sum(group*newnumkidswt17)
 78. forvalues i=1/3{
 79.         egen povnum`i'd=sum(pov`i'*newnumkidswt17)
 80.         gen povrate`i'=povnum`i'd/pop
 81.         }
 82. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 83. 
. * row 5: sum up non-mom and potential spouse
. gen person1=(incwage>0)*(agi2017<80000)*(calckids>0)*(samplenotmoms==1)
 84. gen person2=(totincwage>incwage)*(agi2017<80000)*(calckids>0)*(samplenotmoms=
> =1)*(married==1)
 85. 
. gen double group1=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25
 86. egen totgroup1e=sum(group1)
 87. 
. gen double group2=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25*poo
> r
 88. egen totgroup2e=sum(group2)
 89. 
. gen double group3=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25*(po
> or==0)
 90. egen totgroup3e=sum(group3)
 91. 
. gen double group4=(newnumkidswt17*person1)*avgtax*.25*(poor==0)*poorctc21nother+
> (newnumkidswt17*person2)*avgtax*.25*(poor==0)*poorctc21notspouse
 92. 
. egen totgroup4e=sum(group4)
 93. 
. gen double group5=(newnumkidswt17*person1)*avgtax*.25*(poor==1)*(poorctc21==0)*p
> oorctc21nother+newnumkidswt17*person2*avgtax*.25*(poor==1)*(poorctc21==0)*poorct
> c21notspouse
 94. egen totgroup5e=sum(group5)
 95. 
. gen pov1=(poor*(person1*newnumkidswt17+person2*newnumkidswt17))
 96. gen pov2=(poorctc21*(person1*newnumkidswt17+person2*newnumkidswt17))
 97. gen pov3=(poorctc21*(person1*newnumkidswt17+person2*newnumkidswt17)+group4+gr
> oup5)
 98. 
. egen pop=sum(newnumkidswt17*person1+newnumkidswt17*person2)
 99. forvalues i=1/3{
100.         egen povnum`i'e=sum(pov`i')
101.         gen povrate`i'=povnum`i'e/pop
102.         }
103. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
104. 
. forvalues i=1/5{
105.         di totgroup`i'a+totgroup`i'b+totgroup`i'c+totgroup`i'd+totgroup`i'e
106. }
107. 
. di totkids
108. di totpoorkids
109. di totstillpoor
110. di (totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+totgr
> oup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
111. di totpoorkids/totkids
112. di totstillpoor/totkids
113. di (totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+totgr
> oup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)/totkids
114. di "pov % decrease="
115. di (totpoorkids-(totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+tot
> group4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e))/totpoorkids
116. 
. local netkidpovrate_e`elas'=(totstillpoor+totgroup4a+totgroup4b+totgroup4c+totgr
> oup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
117. local kidpovchange_e`elas'=(totpoorkids-(totstillpoor+totgroup4a+totgroup4b+t
> otgroup4c+totgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totg
> roup5e))/totpoorkids
118. 
. local lesspoorkids_e`elas'=totpoorkids-(totstillpoor+totgroup4a+totgroup4b+totgr
> oup4c+totgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup
> 5e)
119. 
. di `lesspoorkids_e`elas''
120. 
. local employment_e`elas'=totgroup1a+totgroup1b+totgroup1c+totgroup1d+totgroup1e
121. di `employment_e`elas''
122. 
. di `netkidpovrate_e`elas'' 
123. di `kidpovchange_e`elas''
124. restore
125. 
. }
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
622186.83
93962.553
528224.3
267122.8
25718.775
72755400
11176950
7727193.5
8020035.1
.15362365
.10620783
.11023285
pov % decrease=
.28244869
3156914.9
622186.83
8020035.1
.28244869
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
753400.99
123891.37
629509.64
313012.27
34080.416
72755400
11176950
7727193.5
8074286.2
.15362365
.10620783
.11097851
pov % decrease=
.27759486
3102663.8
753400.99
8074286.2
.27759486
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
884615.14
153820.18
730794.99
358901.73
42442.057
72755400
11176950
7727193.5
8128537.3
.15362365
.10620783
.11172418
pov % decrease=
.27274102
3048412.7
884615.14
8128537.3
.27274102
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1015829.3
183749
832080.33
404791.19
50803.699
72755400
11176950
7727193.5
8182788.4
.15362365
.10620783
.11246984
pov % decrease=
.26788718
2994161.6
1015829.3
8182788.4
.26788718
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1147043.5
213677.81
933365.68
450680.66
59165.338
72755400
11176950
7727193.5
8237039.5
.15362365
.10620783
.11321551
pov % decrease=
.26303334
2939910.5
1147043.5
8237039.5
.26303334
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1278257.6
243606.63
1034651
496570.11
67526.979
72755400
11176950
7727193.5
8291290.6
.15362365
.10620783
.11396117
pov % decrease=
.2581795
2885659.4
1278257.6
8291290.6
.2581795
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1409471.8
273535.44
1135936.4
542459.58
75888.623
72755400
11176950
7727193.5
8345541.7
.15362365
.10620783
.11470684
pov % decrease=
.25332567
2831408.3
1409471.8
8345541.7
.25332567
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1540686
303464.26
1237221.7
588349.05
84250.264
72755400
11176950
7727193.5
8399792.8
.15362365
.10620783
.1154525
pov % decrease=
.24847183
2777157.2
1540686
8399792.8
.24847183
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1671900.1
333393.07
1338507.1
634238.52
92611.9
72755400
11176950
7727193.5
8454043.9
.15362365
.10620783
.11619816
pov % decrease=
.24361799
2722906.1
1671900.1
8454043.9
.24361799
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1803114.3
363321.9
1439792.4
680127.99
100973.54
72755400
11176950
7727193.5
8508295
.15362365
.10620783
.11694383
pov % decrease=
.23876415
2668655
1803114.3
8508295
.23876415
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1934328.5
393250.71
1541077.7
726017.43
109335.18
72755400
11176950
7727193.5
8562546.1
.15362365
.10620783
.11768949
pov % decrease=
.23391031
2614403.9
1934328.5
8562546.1
.23391031
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2065542.6
423179.52
1642363.1
771906.89
117696.83
72755400
11176950
7727193.5
8616797.2
.15362365
.10620783
.11843516
pov % decrease=
.22905648
2560152.8
2065542.6
8616797.2
.22905648
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2196756.7
453108.33
1743648.4
817796.36
126058.47
72755400
11176950
7727193.5
8671048.3
.15362365
.10620783
.11918082
pov % decrease=
.22420264
2505901.7
2196756.7
8671048.3
.22420264
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2327971
483037.15
1844933.8
863685.8
134420.11
72755400
11176950
7727193.5
8725299.4
.15362365
.10620783
.11992649
pov % decrease=
.2193488
2451650.6
2327971
8725299.4
.2193488
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2459185.1
512965.96
1946219.2
909575.3
142781.75
72755400
11176950
7727193.5
8779550.6
.15362365
.10620783
.12067215
pov % decrease=
.21449496
2397399.4
2459185.1
8779550.6
.21449496
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2590399.2
542894.77
2047504.6
955464.74
151143.39
72755400
11176950
7727193.5
8833801.6
.15362365
.10620783
.12141781
pov % decrease=
.20964112
2343148.4
2590399.2
8833801.6
.20964112
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2721613.3
572823.58
2148789.8
1001354.2
159505.03
72755400
11176950
7727193.5
8888052.8
.15362365
.10620783
.12216348
pov % decrease=
.20478728
2288897.2
2721613.3
8888052.8
.20478728
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2852827.6
602752.4
2250075.2
1047243.7
167866.67
72755400
11176950
7727193.5
8942303.8
.15362365
.10620783
.12290914
pov % decrease=
.19993345
2234646.2
2852827.6
8942303.8
.19993345
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2984041.8
632681.24
2351360.6
1093133.2
176228.31
72755400
11176950
7727193.5
8996555
.15362365
.10620783
.12365481
pov % decrease=
.19507961
2180395
2984041.8
8996555
.19507961
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
3115255.8
662610.05
2452645.9
1139022.6
184589.95
72755400
11176950
7727193.5
9050806.1
.15362365
.10620783
.12440047
pov % decrease=
.19022577
2126143.9
3115255.8
9050806.1
.19022577
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
3246470.1
692538.87
2553931.2
1184912.1
192951.59
72755400
11176950
7727193.5
9105057.1
.15362365
.10620783
.12514614
pov % decrease=
.18537194
2071892.9
3246470.1
9105057.1
.18537194

. 
. gen netkidpovrate2=.
(356,390 missing values generated)

. gen kidpovchange2=.
(356,390 missing values generated)

. replace elasticity=elasticity/10
(20 real changes made)

. 
. gen lesspoorkids2=.
(356,390 missing values generated)

. gen employment2=.
(356,390 missing values generated)

. 
. forvalues elas=0(1)20{
  2.         *replace elasticity=`elas' if _n==`elas'+1
.         replace netkidpovrate2=`netkidpovrate_e`elas''/1000000 if _n==`elas'+1
  3.         replace kidpovchange2=`kidpovchange_e`elas'' if _n==`elas'+1
  4.         
.         replace lesspoorkids2=`lesspoorkids_e`elas'' if _n==`elas'+1
  5.         replace employment2=`employment_e`elas'' if _n==`elas'+1
  6.         }
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)

. 
. **************************************************
. * DEEP POVERTY 
. **************************************************
. 
. gen deeppoorkids=deeppoor*(newnumkidswt17)

. egen totdeeppoorkids=sum(deeppoorkids)

. di totdeeppoorkids
3109854.5

. 
. gen stilldeeppoor=deeppoor*(deeppoorctc21==1)*(newnumkidswt17)

. egen totstilldeeppoor=sum(stilldeeppoor)

. 
. di totkids
72755400

. di totdeeppoorkids
3109854.5

. di totstilldeeppoor
1495238

. 
. di totdeeppoorkids/totkids
.04274397

. di (totstilldeeppoor)/totkids
.02055157

. 
. ** VARIOUS ELASTICITIES FOR UNMARRIED MOTHERS
. 
. forvalues elas=0(1)20{
  2. preserve
  3. 
. * row 1
. gen double group=(married==0)*(incwage>0)*(v25>0)*(agi2017<80000)*(calckids>0)*(
> samplejustwomen==1)
  4. 
. gen double group1=newnumkidswt17*avgtax*(`elas'/10)*group
  5. egen totgroup1a=sum(group1)
  6. gen double group2=newnumkidswt17*avgtax*(`elas'/10)*group*deeppoor
  7. egen totgroup2a=sum(group2)
  8. 
. gen double group3=newnumkidswt17*avgtax*(`elas'/10)*group*(deeppoor==0)
  9. egen totgroup3a=sum(group3)
 10. 
. gen double group4=newnumkidswt17*avgtax*(`elas'/10)*group*(deeppoor==0)*deeppoor
> ctc21nother
 11. egen totgroup4a=sum(group4)
 12. 
. gen double group5=newnumkidswt17*avgtax*(`elas'/10)*group*(deeppoor==1)*(deeppoo
> rctc21==0)*deeppoorctc21nother
 13. egen totgroup5a=sum(group5)
 14. 
. gen pov1=(deeppoor*group)/(group)
 15. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 16. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 17. 
. egen pop=sum(group*newnumkidswt17)
 18. forvalues i=1/3{
 19.         egen povnum`i'a=sum(pov`i'*newnumkidswt17)
 20.         gen povrate`i'=povnum`i'a/pop
 21.         }
 22. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 23. 
. * row 2
. gen double group=(married==0)*(incwage>0)*(v25==0)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 24. 
. gen double group1=newnumkidswt17*avgtax*.2*group
 25. egen totgroup1b=sum(group1)
 26. 
. gen double group2=newnumkidswt17*avgtax*.2*group*deeppoor
 27. egen totgroup2b=sum(group2)
 28. 
. gen double group3=newnumkidswt17*avgtax*.2*group*(deeppoor==0)
 29. egen totgroup3b=sum(group3)
 30. 
. gen double group4=newnumkidswt17*avgtax*.2*group*(deeppoor==0)*deeppoorctc21noth
> er
 31. egen totgroup4b=sum(group4)
 32. 
. gen double group5=newnumkidswt17*avgtax*.2*group*(deeppoor==1)*(deeppoorctc21==0
> )*deeppoorctc21nother
 33. egen totgroup5b=sum(group5)
 34. 
. gen pov1=(deeppoor*group)/(group)
 35. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 36. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 37. 
. egen pop=sum(group*newnumkidswt17)
 38. forvalues i=1/3{
 39.         egen povnum`i'b=sum(pov`i'*newnumkidswt17)
 40.         gen povrate`i'=povnum`i'b/pop
 41.         }
 42. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 43. 
. * row 3
. gen double group=(married==1)*(incwage>0)*(agi2017<80000)*(calckids>0)*(sampleju
> stwomen==1)
 44. 
. gen double group1=newnumkidswt17*avgtax*.2*group
 45. egen totgroup1c=sum(group1)
 46. 
. gen double group2=newnumkidswt17*avgtax*.2*group*deeppoor
 47. egen totgroup2c=sum(group2)
 48. 
. gen double group3=newnumkidswt17*avgtax*.2*group*(deeppoor==0)
 49. egen totgroup3c=sum(group3)
 50. 
. gen double group4=newnumkidswt17*avgtax*.2*group*(deeppoor==0)*deeppoorctc21noth
> er
 51. egen totgroup4c=sum(group4)
 52. 
. gen double group5=newnumkidswt17*avgtax*.2*group*(deeppoor==1)*(deeppoorctc21==0
> )*deeppoorctc21nother
 53. egen totgroup5c=sum(group5)
 54. 
. gen pov1=(deeppoor*group)/(group)
 55. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 56. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 57. 
. egen pop=sum(group*newnumkidswt17)
 58. forvalues i=1/3{
 59.         egen povnum`i'c=sum(pov`i'*newnumkidswt17)
 60.         gen povrate`i'=povnum`i'c/pop
 61.         }
 62. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 63. 
. * row 4
. gen double group=(married==1)*(totincwage>incwage)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 64. 
. gen double group1=newnumkidswt17*newrtwchangespouse*.05*group
 65. egen totgroup1d=sum(group1)
 66. 
. gen double group2=newnumkidswt17*newrtwchangespouse*.05*group*deeppoor
 67. egen totgroup2d=sum(group2)
 68. 
. gen double group3=newnumkidswt17*newrtwchangespouse*.05*group*(deeppoor==0)
 69. egen totgroup3d=sum(group3)
 70. 
. gen double group4=newnumkidswt17*newrtwchangespouse*.05*group*(deeppoor==0)*deep
> poorctc21notspouse
 71. egen totgroup4d=sum(group4)
 72. 
. gen double group5=newnumkidswt17*newrtwchangespouse*.05*group*(deeppoor==1)*(dee
> ppoorctc21==0)*deeppoorctc21notspouse
 73. egen totgroup5d=sum(group5)
 74. 
. gen pov1=(deeppoor*group)/(group)
 75. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 76. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 77. 
. egen pop=sum(group*newnumkidswt17)
 78. forvalues i=1/3{
 79.         egen povnum`i'd=sum(pov`i'*newnumkidswt17)
 80.         gen povrate`i'=povnum`i'd/pop
 81.         }
 82. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 83. 
. * row 5: sum up non-mom and potential spouse
. gen person1=(incwage>0)*(agi2017<80000)*(calckids>0)*(samplenotmoms==1)
 84. gen person2=(totincwage>incwage)*(agi2017<80000)*(calckids>0)*(samplenotmoms=
> =1)*(married==1)
 85. 
. gen double group1=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05
 86. egen totgroup1e=sum(group1)
 87. 
. gen double group2=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05*dee
> ppoor
 88. egen totgroup2e=sum(group2)
 89. 
. gen double group3=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.05*(de
> eppoor==0)
 90. egen totgroup3e=sum(group3)
 91. 
. gen double group4=(newnumkidswt17*person1)*avgtax*.05*(deeppoor==0)*deeppoorctc2
> 1nother+(newnumkidswt17*person2)*avgtax*.05*(deeppoor==0)*deeppoorctc21notspouse
 92. 
. egen totgroup4e=sum(group4)
 93. 
. gen double group5=(newnumkidswt17*person1)*avgtax*.05*(deeppoor==1)*(deeppoorctc
> 21==0)*deeppoorctc21nother+newnumkidswt17*person2*avgtax*.05*(deeppoor==1)*(deep
> poorctc21==0)*deeppoorctc21notspouse
 94. egen totgroup5e=sum(group5)
 95. 
. gen pov1=(deeppoor*(person1*newnumkidswt17+person2*newnumkidswt17))
 96. gen pov2=(deeppoorctc21*(person1*newnumkidswt17+person2*newnumkidswt17))
 97. gen pov3=(deeppoorctc21*(person1*newnumkidswt17+person2*newnumkidswt17)+group
> 4+group5)
 98. 
. egen pop=sum(newnumkidswt17*person1+newnumkidswt17*person2)
 99. forvalues i=1/3{
100.         egen povnum`i'e=sum(pov`i')
101.         gen povrate`i'=povnum`i'e/pop
102.         }
103. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
104. 
. forvalues i=1/5{
105.         di totgroup`i'a+totgroup`i'b+totgroup`i'c+totgroup`i'd+totgroup`i'e
106. }
107. 
. di totkids
108. di totdeeppoorkids
109. di totstilldeeppoor
110. di (totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+t
> otgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
111. di totdeeppoorkids/totkids
112. di totstilldeeppoor/totkids
113. di (totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+t
> otgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)/totkids
114. di "pov % decrease="
115. di (totdeeppoorkids-(totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+totgro
> up4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e))/totdeep
> poorkids
116. 
. local netkidpovrate_e`elas'=(totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+t
> otgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
117. local kidpovchange_e`elas'=(totdeeppoorkids-(totstilldeeppoor+totgroup4a+totg
> roup4b+totgroup4c+totgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgrou
> p5d+totgroup5e))/totdeeppoorkids
118. 
. local lessdeeppoorkids_e`elas'=totdeeppoorkids-(totstilldeeppoor+totgroup4a+totg
> roup4b+totgroup4c+totgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgrou
> p5d+totgroup5e)
119. di `lessdeeppoorkids_e`elas''
120. 
. di `netkidpovrate_e`elas'' 
121. di `kidpovchange_e`elas''
122. restore
123. 
. }
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
235349.86
3772.108
231577.75
27662.17
572.99918
72755400
3109854.5
1495238
1523473.2
.04274397
.02055157
.02093966
pov % decrease=
.51011433
1586381.3
1523473.2
.51011433
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
366564.02
8069.5269
358494.49
45929.79
1429.0481
72755400
3109854.5
1495238
1542596.8
.04274397
.02055157
.02120251
pov % decrease=
.50396495
1567257.7
1542596.8
.50396495
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
497778.17
12366.946
485411.24
64197.409
2285.0971
72755400
3109854.5
1495238
1561720.5
.04274397
.02055157
.02146536
pov % decrease=
.49781557
1548134
1561720.5
.49781557
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
628992.33
16664.366
612327.97
82465.026
3141.1462
72755400
3109854.5
1495238
1580844.2
.04274397
.02055157
.0217282
pov % decrease=
.49166619
1529010.3
1580844.2
.49166619
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
760206.49
20961.784
739244.72
100732.65
3997.195
72755400
3109854.5
1495238
1599967.8
.04274397
.02055157
.02199105
pov % decrease=
.48551682
1509886.7
1599967.8
.48551682
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
891420.67
25259.204
866161.44
119000.26
4853.2443
72755400
3109854.5
1495238
1619091.5
.04274397
.02055157
.0222539
pov % decrease=
.47936744
1490763
1619091.5
.47936744
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1022634.8
29556.624
993078.19
137267.88
5709.2931
72755400
3109854.5
1495238
1638215.2
.04274397
.02055157
.02251675
pov % decrease=
.47321806
1471639.3
1638215.2
.47321806
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1153849
33854.042
1119994.9
155535.5
6565.342
72755400
3109854.5
1495238
1657338.8
.04274397
.02055157
.0227796
pov % decrease=
.46706869
1452515.7
1657338.8
.46706869
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1285063.1
38151.46
1246911.7
173803.12
7421.3908
72755400
3109854.5
1495238
1676462.5
.04274397
.02055157
.02304245
pov % decrease=
.46091931
1433392
1676462.5
.46091931
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1416277.4
42448.881
1373828.4
192070.73
8277.4401
72755400
3109854.5
1495238
1695586.2
.04274397
.02055157
.0233053
pov % decrease=
.45476993
1414268.3
1695586.2
.45476993
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1547491.5
46746.299
1500745.1
210338.36
9133.4894
72755400
3109854.5
1495238
1714709.8
.04274397
.02055157
.02356815
pov % decrease=
.44862056
1395144.7
1714709.8
.44862056
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1678705.6
51043.717
1627661.9
228605.98
9989.5382
72755400
3109854.5
1495238
1733833.5
.04274397
.02055157
.02383099
pov % decrease=
.44247118
1376021
1733833.5
.44247118
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1809919.7
55341.139
1754578.6
246873.59
10845.587
72755400
3109854.5
1495238
1752957.2
.04274397
.02055157
.02409384
pov % decrease=
.4363218
1356897.3
1752957.2
.4363218
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1941134
59638.557
1881495.4
265141.22
11701.636
72755400
3109854.5
1495238
1772080.9
.04274397
.02055157
.02435669
pov % decrease=
.43017242
1337773.6
1772080.9
.43017242
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2072348.1
63935.975
2008412.1
283408.83
12557.685
72755400
3109854.5
1495238
1791204.5
.04274397
.02055157
.02461954
pov % decrease=
.42402305
1318650
1791204.5
.42402305
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2203562.2
68233.397
2135328.9
301676.45
13413.734
72755400
3109854.5
1495238
1810328.2
.04274397
.02055157
.02488239
pov % decrease=
.41787367
1299526.3
1810328.2
.41787367
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2334776.4
72530.811
2262245.6
319944.08
14269.782
72755400
3109854.5
1495238
1829451.9
.04274397
.02055157
.02514524
pov % decrease=
.41172429
1280402.6
1829451.9
.41172429
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2465990.6
76828.233
2389162.3
338211.7
15125.832
72755400
3109854.5
1495238
1848575.5
.04274397
.02055157
.02540809
pov % decrease=
.40557491
1261279
1848575.5
.40557491
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2597204.9
81125.655
2516079
356479.3
15981.881
72755400
3109854.5
1495238
1867699.2
.04274397
.02055157
.02567094
pov % decrease=
.39942554
1242155.3
1867699.2
.39942554
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2728418.9
85423.069
2642995.8
374746.92
16837.93
72755400
3109854.5
1495238
1886822.9
.04274397
.02055157
.02593378
pov % decrease=
.39327616
1223031.6
1886822.9
.39327616
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2859633.1
89720.491
2769912.5
393014.55
17693.98
72755400
3109854.5
1495238
1905946.5
.04274397
.02055157
.02619663
pov % decrease=
.38712679
1203908
1905946.5
.38712679

. 
. gen netkiddeeppovrate1=.
(356,390 missing values generated)

. gen kiddeeppovchange1=.
(356,390 missing values generated)

. 
. gen lessdeeppoorkids1=.
(356,390 missing values generated)

. 
. forvalues elas=0(1)20{
  2.         replace netkiddeeppovrate1=`netkidpovrate_e`elas''/1000000 if _n==`el
> as'+1
  3.         replace kiddeeppovchange1=`kidpovchange_e`elas'' if _n==`elas'+1
  4. 
.         replace lessdeeppoorkids1=`lessdeeppoorkids_e`elas'' if _n==`elas'+1
  5.         }
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)

. 
. * EVERYONE ELSE GETS 0.25
. 
. forvalues elas=0(1)20{
  2. preserve
  3. 
. * row 1
. gen double group=(married==0)*(incwage>0)*(v25>0)*(agi2017<80000)*(calckids>0)*(
> samplejustwomen==1)
  4. 
. gen double group1=newnumkidswt17*avgtax*(`elas'/10)*group
  5. egen totgroup1a=sum(group1)
  6. gen double group2=newnumkidswt17*avgtax*(`elas'/10)*group*deeppoor
  7. egen totgroup2a=sum(group2)
  8. 
. gen double group3=newnumkidswt17*avgtax*(`elas'/10)*group*(deeppoor==0)
  9. egen totgroup3a=sum(group3)
 10. 
. gen double group4=newnumkidswt17*avgtax*(`elas'/10)*group*(deeppoor==0)*deeppoor
> ctc21nother
 11. egen totgroup4a=sum(group4)
 12. 
. gen double group5=newnumkidswt17*avgtax*(`elas'/10)*group*(deeppoor==1)*(deeppoo
> rctc21==0)*deeppoorctc21nother
 13. egen totgroup5a=sum(group5)
 14. 
. gen pov1=(deeppoor*group)/(group)
 15. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 16. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 17. 
. egen pop=sum(group*newnumkidswt17)
 18. forvalues i=1/3{
 19.         egen povnum`i'a=sum(pov`i'*newnumkidswt17)
 20.         gen povrate`i'=povnum`i'a/pop
 21.         }
 22. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 23. 
. * row 2
. gen double group=(married==0)*(incwage>0)*(v25==0)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 24. 
. gen double group1=newnumkidswt17*avgtax*.25*group
 25. egen totgroup1b=sum(group1)
 26. 
. gen double group2=newnumkidswt17*avgtax*.25*group*deeppoor
 27. egen totgroup2b=sum(group2)
 28. 
. gen double group3=newnumkidswt17*avgtax*.25*group*(deeppoor==0)
 29. egen totgroup3b=sum(group3)
 30. 
. gen double group4=newnumkidswt17*avgtax*.25*group*(deeppoor==0)*deeppoorctc21not
> her
 31. egen totgroup4b=sum(group4)
 32. 
. gen double group5=newnumkidswt17*avgtax*.25*group*(deeppoor==1)*(deeppoorctc21==
> 0)*deeppoorctc21nother
 33. egen totgroup5b=sum(group5)
 34. 
. gen pov1=(deeppoor*group)/(group)
 35. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 36. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 37. 
. egen pop=sum(group*newnumkidswt17)
 38. forvalues i=1/3{
 39.         egen povnum`i'b=sum(pov`i'*newnumkidswt17)
 40.         gen povrate`i'=povnum`i'b/pop
 41.         }
 42. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 43. 
. * row 3
. gen double group=(married==1)*(incwage>0)*(agi2017<80000)*(calckids>0)*(sampleju
> stwomen==1)
 44. 
. gen double group1=newnumkidswt17*avgtax*.25*group
 45. egen totgroup1c=sum(group1)
 46. 
. gen double group2=newnumkidswt17*avgtax*.25*group*deeppoor
 47. egen totgroup2c=sum(group2)
 48. 
. gen double group3=newnumkidswt17*avgtax*.25*group*(deeppoor==0)
 49. egen totgroup3c=sum(group3)
 50. 
. gen double group4=newnumkidswt17*avgtax*.25*group*(deeppoor==0)*deeppoorctc21not
> her
 51. egen totgroup4c=sum(group4)
 52. 
. gen double group5=newnumkidswt17*avgtax*.25*group*(deeppoor==1)*(deeppoorctc21==
> 0)*deeppoorctc21nother
 53. egen totgroup5c=sum(group5)
 54. 
. gen pov1=(deeppoor*group)/(group)
 55. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 56. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 57. 
. egen pop=sum(group*newnumkidswt17)
 58. forvalues i=1/3{
 59.         egen povnum`i'c=sum(pov`i'*newnumkidswt17)
 60.         gen povrate`i'=povnum`i'c/pop
 61.         }
 62. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 63. 
. * row 4
. gen double group=(married==1)*(totincwage>incwage)*(agi2017<80000)*(calckids>0)*
> (samplejustwomen==1)
 64. 
. gen double group1=newnumkidswt17*newrtwchangespouse*.25*group
 65. egen totgroup1d=sum(group1)
 66. 
. gen double group2=newnumkidswt17*newrtwchangespouse*.25*group*deeppoor
 67. egen totgroup2d=sum(group2)
 68. 
. gen double group3=newnumkidswt17*newrtwchangespouse*.25*group*(deeppoor==0)
 69. egen totgroup3d=sum(group3)
 70. 
. gen double group4=newnumkidswt17*newrtwchangespouse*.25*group*(deeppoor==0)*deep
> poorctc21notspouse
 71. egen totgroup4d=sum(group4)
 72. 
. gen double group5=newnumkidswt17*newrtwchangespouse*.25*group*(deeppoor==1)*(dee
> ppoorctc21==0)*deeppoorctc21notspouse
 73. egen totgroup5d=sum(group5)
 74. 
. gen pov1=(deeppoor*group)/(group)
 75. gen pov2=(deeppoor*group*(deeppoorctc21==1))/(group)
 76. gen pov3=(deeppoor*group*(deeppoorctc21==1)+group4/newnumkidswt17+group5/newn
> umkidswt17)/(group)
 77. 
. egen pop=sum(group*newnumkidswt17)
 78. forvalues i=1/3{
 79.         egen povnum`i'd=sum(pov`i'*newnumkidswt17)
 80.         gen povrate`i'=povnum`i'd/pop
 81.         }
 82. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
 83. 
. * row 5: sum up non-mom and potential spouse
. gen person1=(incwage>0)*(agi2017<80000)*(calckids>0)*(samplenotmoms==1)
 84. gen person2=(totincwage>incwage)*(agi2017<80000)*(calckids>0)*(samplenotmoms=
> =1)*(married==1)
 85. 
. gen double group1=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25
 86. egen totgroup1e=sum(group1)
 87. 
. gen double group2=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25*dee
> ppoor
 88. egen totgroup2e=sum(group2)
 89. 
. gen double group3=(newnumkidswt17*person1+newnumkidswt17*person2)*avgtax*.25*(de
> eppoor==0)
 90. egen totgroup3e=sum(group3)
 91. 
. gen double group4=(newnumkidswt17*person1)*avgtax*.25*(deeppoor==0)*deeppoorctc2
> 1nother+(newnumkidswt17*person2)*avgtax*.25*(deeppoor==0)*deeppoorctc21notspouse
 92. 
. egen totgroup4e=sum(group4)
 93. 
. gen double group5=(newnumkidswt17*person1)*avgtax*.25*(deeppoor==1)*(deeppoorctc
> 21==0)*deeppoorctc21nother+newnumkidswt17*person2*avgtax*.25*(deeppoor==1)*(deep
> poorctc21==0)*deeppoorctc21notspouse
 94. egen totgroup5e=sum(group5)
 95. 
. gen pov1=(deeppoor*(person1*newnumkidswt17+person2*newnumkidswt17))
 96. gen pov2=(deeppoorctc21*(person1*newnumkidswt17+person2*newnumkidswt17))
 97. gen pov3=(deeppoorctc21*(person1*newnumkidswt17+person2*newnumkidswt17)+group
> 4+group5)
 98. 
. egen pop=sum(newnumkidswt17*person1+newnumkidswt17*person2)
 99. forvalues i=1/3{
100.         egen povnum`i'e=sum(pov`i')
101.         gen povrate`i'=povnum`i'e/pop
102.         }
103. 
. drop pov1 pov2 pov3 povrate* pop group5 group*
104. 
. forvalues i=1/5{
105.         di totgroup`i'a+totgroup`i'b+totgroup`i'c+totgroup`i'd+totgroup`i'e
106. }
107. 
. di totkids
108. di totdeeppoorkids
109. di totstilldeeppoor
110. di (totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+t
> otgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
111. di totdeeppoorkids/totkids
112. di totstilldeeppoor/totkids
113. di (totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+totgroup4d+totgroup4e+t
> otgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)/totkids
114. di "pov % decrease="
115. di (totdeeppoorkids-(totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+totgro
> up4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e))/totdeep
> poorkids
116. 
. local netkidpovrate_e`elas'=(totstilldeeppoor+totgroup4a+totgroup4b+totgroup4c+t
> otgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgroup5d+totgroup5e)
117. local kidpovchange_e`elas'=(totdeeppoorkids-(totstilldeeppoor+totgroup4a+totg
> roup4b+totgroup4c+totgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgrou
> p5d+totgroup5e))/totdeeppoorkids
118. 
. local lessdeeppoorkids_e`elas'=totdeeppoorkids-(totstilldeeppoor+totgroup4a+totg
> roup4b+totgroup4c+totgroup4d+totgroup4e+totgroup5a+totgroup5b+totgroup5c+totgrou
> p5d+totgroup5e)
119. di `lessdeeppoorkids_e`elas''
120. 
. di `netkidpovrate_e`elas'' 
121. di `kidpovchange_e`elas''
122. restore
123. 
. }
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
622186.83
11212.045
610974.77
85548.889
1975.1473
72755400
3109854.5
1495238
1582762
.04274397
.02055157
.02175456
pov % decrease=
.49104949
1527092.5
1582762
.49104949
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
753400.99
15509.464
737891.51
103816.51
2831.1963
72755400
3109854.5
1495238
1601885.7
.04274397
.02055157
.02201741
pov % decrease=
.48490011
1507968.8
1601885.7
.48490011
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
884615.14
19806.883
864808.25
122084.13
3687.2452
72755400
3109854.5
1495238
1621009.4
.04274397
.02055157
.02228026
pov % decrease=
.47875073
1488845.1
1621009.4
.47875073
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1015829.3
24104.303
991724.99
140351.74
4543.2943
72755400
3109854.5
1495238
1640133
.04274397
.02055157
.02254311
pov % decrease=
.47260136
1469721.5
1640133
.47260136
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1147043.5
28401.721
1118641.7
158619.37
5399.3431
72755400
3109854.5
1495238
1659256.7
.04274397
.02055157
.02280596
pov % decrease=
.46645198
1450597.8
1659256.7
.46645198
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1278257.6
32699.141
1245558.5
176886.98
6255.3924
72755400
3109854.5
1495238
1678380.4
.04274397
.02055157
.02306881
pov % decrease=
.4603026
1431474.1
1678380.4
.4603026
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1409471.8
36996.561
1372475.2
195154.6
7111.4413
72755400
3109854.5
1495238
1697504
.04274397
.02055157
.02333166
pov % decrease=
.45415323
1412350.5
1697504
.45415323
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1540686
41293.979
1499392
213422.22
7967.4901
72755400
3109854.5
1495238
1716627.7
.04274397
.02055157
.02359451
pov % decrease=
.44800385
1393226.8
1716627.7
.44800385
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1671900.1
45591.397
1626308.7
231689.84
8823.5389
72755400
3109854.5
1495238
1735751.4
.04274397
.02055157
.02385735
pov % decrease=
.44185447
1374103.1
1735751.4
.44185447
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1803114.3
49888.819
1753225.4
249957.45
9679.5882
72755400
3109854.5
1495238
1754875
.04274397
.02055157
.0241202
pov % decrease=
.4357051
1354979.5
1754875
.4357051
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
1934328.5
54186.237
1880142.1
268225.08
10535.638
72755400
3109854.5
1495238
1773998.7
.04274397
.02055157
.02438305
pov % decrease=
.42955572
1335855.8
1773998.7
.42955572
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2065542.6
58483.655
2007058.9
286492.7
11391.686
72755400
3109854.5
1495238
1793122.4
.04274397
.02055157
.0246459
pov % decrease=
.42340634
1316732.1
1793122.4
.42340634
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2196756.7
62781.077
2133975.6
304760.31
12247.735
72755400
3109854.5
1495238
1812246
.04274397
.02055157
.02490875
pov % decrease=
.41725697
1297608.5
1812246
.41725697
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2327971
67078.495
2260892.4
323027.94
13103.784
72755400
3109854.5
1495238
1831369.7
.04274397
.02055157
.0251716
pov % decrease=
.41110759
1278484.8
1831369.7
.41110759
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2459185.1
71375.913
2387809.1
341295.55
13959.833
72755400
3109854.5
1495238
1850493.4
.04274397
.02055157
.02543445
pov % decrease=
.40495821
1259361.1
1850493.4
.40495821
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2590399.2
75673.335
2514725.9
359563.17
14815.882
72755400
3109854.5
1495238
1869617.1
.04274397
.02055157
.0256973
pov % decrease=
.39880883
1240237.4
1869617.1
.39880883
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2721613.3
79970.749
2641642.6
377830.8
15671.931
72755400
3109854.5
1495238
1888740.7
.04274397
.02055157
.02596014
pov % decrease=
.39265946
1221113.8
1888740.7
.39265946
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2852827.6
84268.17
2768559.3
396098.42
16527.98
72755400
3109854.5
1495238
1907864.4
.04274397
.02055157
.02622299
pov % decrease=
.38651008
1201990.1
1907864.4
.38651008
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
2984041.8
88565.592
2895476
414366.01
17384.029
72755400
3109854.5
1495238
1926988
.04274397
.02055157
.02648584
pov % decrease=
.38036071
1182866.5
1926988
.38036071
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
3115255.8
92863.006
3022392.8
432633.64
18240.078
72755400
3109854.5
1495238
1946111.7
.04274397
.02055157
.02674869
pov % decrease=
.37421133
1163742.8
1946111.7
.37421133
(303,800 missing values generated)
(303,800 missing values generated)
(303,800 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(341,442 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(302,348 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
(278,992 missing values generated)
3246470.1
97160.428
3149309.5
450901.26
19096.128
72755400
3109854.5
1495238
1965235.4
.04274397
.02055157
.02701154
pov % decrease=
.36806195
1144619.1
1965235.4
.36806195

. 
. gen netkiddeeppovrate2=.
(356,390 missing values generated)

. gen kiddeeppovchange2=.
(356,390 missing values generated)

. 
. gen lessdeeppoorkids2=.
(356,390 missing values generated)

. 
. forvalues elas=0(1)20{
  2.         replace netkiddeeppovrate2=`netkidpovrate_e`elas''/1000000 if _n==`el
> as'+1
  3.         replace kiddeeppovchange2=`kidpovchange_e`elas'' if _n==`elas'+1
  4.         
.         replace lessdeeppoorkids2=`lessdeeppoorkids_e`elas'' if _n==`elas'+1
  5. }
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)
(1 real change made)

. 
. foreach var in netkidpovrate1 netkidpovrate2 {
  2.         replace `var'=11.177-`var'
  3.         sum `var'
  4.         }
(21 real changes made)

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
netkidpovr~1 |         21    2.818151    .3366193    2.27564   3.360662
(21 real changes made)

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
netkidpovr~2 |         21    2.614454    .3366192   2.071943   3.156965

. 
. foreach var in netkiddeeppovrate1 netkiddeeppovrate2 {
  2.         replace `var'=3.11-`var'
  3.         sum `var'
  4.         }
(21 real changes made)

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
netkiddeep~1 |         21     1.39529    .1186592   1.204054   1.586527
(21 real changes made)

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
netkiddeep~2 |         21    1.336001    .1186592   1.144765   1.527238

.         
. keep elasticity netkid*povrate* kid*povchange* less*poorkids* employment*

. duplicates drop 

Duplicates in terms of all variables

(356,368 observations deleted)

. sort elasticity

. 
. *** in 1000s
. gen costpernonpoorkid1=90000000/lesspoorkids1
(1 missing value generated)

. gen costpernonpoorkid2=90000000/lesspoorkids2
(1 missing value generated)

. gen costpernondeeppoorkid1=90000000/lessdeeppoorkids1
(1 missing value generated)

. gen costpernondeeppoorkid2=90000000/lessdeeppoorkids2
(1 missing value generated)

. sum costper*

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
co~npoorkid1 |         21    32.38127    3.932301   26.78084   39.55019
co~npoorkid2 |         21    34.98413    4.591927   28.50884   43.43854
co~ppoorkid1 |         21    64.95944    5.570898   56.73289   74.75655
co~ppoorkid2 |         21    67.88575    6.084871   58.93553   78.62878

. 
. replace employment1=employment1/1000000
(21 real changes made)

. replace employment2=employment2/1000000
(21 real changes made)

. sum employment*

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
 employment1 |         21    1.547491    .8141624   .2353499   2.859633
 employment2 |         21    1.934328    .8141624   .6221868    3.24647

. 
. *** add in static estimate
. expand 2 in l
(1 observation created)

. replace elasticity=0 if _n==23
(1 real change made)

. gen static1=0 if _n==23
(22 missing values generated)

. gen static2=26 if _n==23        /* 90000000000/(11177000-7727000)  */   
(22 missing values generated)

. gen static3=56 if _n==23        /* 90000000000/(3110000-1495000) */
(22 missing values generated)

. sum static*

    Variable |        Obs        Mean    Std. dev.       Min        Max
-------------+---------------------------------------------------------
     static1 |          1           0           .          0          0
     static2 |          1          26           .         26         26
     static3 |          1          56           .         56         56

. 
. replace elasticity =.75 if _n==22 & elasticity==.
(1 real change made)

. replace kidpovchange2=(kidpovchange2[_n-13]+kidpovchange2[_n-14])/2 if elasticit
> y==.75
(1 real change made)

. replace kiddeeppovchange2=(kiddeeppovchange2[_n-13]+kiddeeppovchange2[_n-14])/2 
> if elasticity==.75
(1 real change made)

. replace employment2=(employment2[_n-13]+employment2[_n-14])/2 if elasticity==.75
(1 real change made)

. replace costpernonpoorkid2=(costpernonpoorkid2[_n-13]+costpernonpoorkid2[_n-14])
> /2 if elasticity==.75
(1 real change made)

. replace costpernondeeppoorkid2=(costpernondeeppoorkid2[_n-13]+costpernondeeppoor
> kid2[_n-14])/2 if elasticity==.75
(1 real change made)

. 
. sort elasticity

. 
. *** i have kids of parents that stop working, let's change to parents
. replace employment1=employment1*(760/624)*(367/760)
(21 real changes made)

. replace employment2=employment2*760/624*(367/760)
(22 real changes made)

. 
. twoway line costpernonpoorkid1 elasticity, c(l) pstyle(p1) || line costpernonpoo
> rkid2 elasticity, c(l) pstyle(p2) lp(-) ytitle("Cost Per Child Pulled Out of Pov
> erty ($1,000s)") graphregion(color(white)) bgcolor(white) xtitle("Elasticity for
>  Unmarried EITC Mothers" "{bf:Panel A: Child Poverty}") text(25 .3 "(Left Axis)"
>  , j(left) size(medsmall)) text(17 1.55 "(Right Axis, Employment Effects)" , j(l
> eft) size(medsmall)) xlabel(0(.4)2) || line employment1 elasticity, c(l) pstyle(
> p1) yaxis(2) || line employment2 elasticity, c(l) yaxis(2) pstyle(p2) lp(-) ytit
> le("Parents Predicted to Stop Working (Millions)", axis(2)) leg(order(1 "0.2 Ela
> sticity for Other Moms, 0.05 for All Dads" 2 "0.25 Elasticity for Other Moms and
>  All Dads" 10 "Static Estimates" 8 "My Preferred Estimates" 9 "Estimates from Se
> ction 7.4") c(1) pos(11) ring(0)) || scatter employment1 elasticity if (elastici
> ty>.39 & elasticity<.41)  , pstyle(p1) m(S) yaxis(2) || scatter costpernonpoorki
> d1 elasticity if (elasticity>.39 & elasticity<.41)  , pstyle(p1) m(S) yaxis(1) |
> | scatter employment2 elasticity if (elasticity>.74 & elasticity<.76) , pstyle(p
> 2) m(S) yaxis(2) ylabel(0(.5)2.5 3 " ", axis(2)) ylabel(0(10)40 57 " ", axis(1))
>  || scatter static1 elasticity  , pstyle(p1) m(Oh) msize(large) yaxis(2)  || sca
> tter static2 elasticity  , pstyle(p1) m(Oh) msize(large) || scatter costpernonpo
> orkid2 elasticity if (elasticity>.74 & elasticity<.76)  , pstyle(p2) m(S) yaxis(
> 1)

. graph export "$output/figure9a.png", replace
file G:\My Drive\Research\CTC expansion\submission\ntj\stata replication
    files/output/figure9a.png saved as PNG format

. 
. twoway line costpernondeeppoorkid1 elasticity, c(l) pstyle(p1) || line costperno
> ndeeppoorkid2 elasticity, c(l) pstyle(p2) lp(-) ytitle("Cost Per Child Pulled Ou
> t of Deep Poverty ($1,000s)") graphregion(color(white)) bgcolor(white) xtitle("E
> lasticity for Unmarried EITC Mothers" "{bf:Panel B: Child Deep Poverty}") text(5
> 2 .3 "(Left Axis)" , j(left) size(medsmall)) text(34 1.52 "(Right Axis, Employme
> nt Effects)" , j(left) size(medsmall)) xlabel(0(.4)2) || line employment1 elasti
> city, c(l) pstyle(p1) yaxis(2) || line employment2 elasticity, c(l) yaxis(2) pst
> yle(p2) lp(-) ytitle("Parents Predicted to Stop Working (Millions)", axis(2)) le
> g(order(1 "0.2 Elasticity for Other Moms, 0.05 for All Dads" 2 "0.25 Elasticity 
> for Other Moms and All Dads" 10 "Static Estimates" 8 "My Preferred Estimates" 9 
> "Estimates from Section 7.4") c(1) pos(11) ring(0)) || scatter employment1 elast
> icity if (elasticity>.39 & elasticity<.41)  , pstyle(p1) m(S) yaxis(2) || scatte
> r costpernondeeppoorkid1 elasticity if (elasticity>.39 & elasticity<.41)  , psty
> le(p1) m(S) yaxis(1) || scatter employment2 elasticity if (elasticity>.74 & elas
> ticity<.76) , pstyle(p2) m(S) yaxis(2) ylabel(0(.5)2.5 2.8 " ", axis(2)) ylabel(
> 0(20)60 107 " ", axis(1)) || scatter static1 elasticity  , pstyle(p1) m(Oh) msiz
> e(large) yaxis(2)  || scatter static3 elasticity  , pstyle(p1) m(Oh) msize(large
> ) || scatter costpernondeeppoorkid2 elasticity if (elasticity>.74 & elasticity<.
> 76)  , pstyle(p2) m(S) yaxis(1)

. graph export "$output/figure9b.png", replace
file G:\My Drive\Research\CTC expansion\submission\ntj\stata replication
    files/output/figure9b.png saved as PNG format

. 
. log close
      name:  <unnamed>
       log:  G:\My Drive\Research\CTC expansion\submission\ntj\stata replication f
> iles/output/figure9.log
  log type:  text
 closed on:   3 Dec 2023, 18:17:23
----------------------------------------------------------------------------------
